package cn.cvs.dao.supplier;

import cn.cvs.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SupplierMapper {

    List<Supplier> getSupplierList(@Param("supCode")String supCode,@Param("supName")String supName,@Param("supContact") String supContact,@Param("createdTime") Date createdTime);

    List<Supplier> getSupplierAndStorageRecordList(Integer id);

    int addSupplier(Supplier supplier);

    int deleteSupplier(Integer id);

    int updateSupplier(Supplier supplier);

    List<Supplier> selectPageSupplierList(@Param("pageBegin")Integer pageBegin,@Param("pageSize")Integer pageSize);
}
